package com.unhz.taigu.service;

import com.github.pagehelper.PageInfo;
import com.unhz.generator.pojo.SysPermission;
import com.unhz.generator.pojo.SysUser;
import com.unhz.generator.utils.Page;
import java.util.List;

/**
 * Created by cxg on 2017/11/8 0008.
 *
 * @Author 曹显贵
 * @Date 2017/11/8 0008 11:34
 */
public interface SysUserService {

    SysUser selectAll();

    List<SysUser> findAllUser();

    String insertUser(SysUser sysUser);

    SysUser selectByUserId(Integer userId);


    PageInfo<SysUser> selectByPage(Integer pageNo, Integer pageSize);

    Page<SysUser> selectByOldPage(String pageNo, Integer pageSize, String keywords);

    //执行删除
    String deleteUserById(Integer userId);


    SysUser selectByUserName(String userCode);
    //查询权限
    List<SysPermission> findMenuByUserId(Integer id);

    List<SysPermission> findPermissionByUserId(Integer id);
    //分页
    SysUser loginUser(String userPhone, String password);

    int updateUserById(SysUser sysUser);

    SysUser selectByPrimaryKey(Integer id);

    String updateUserPassword(SysUser sysUser);

    Page<SysUser> findPageAllSysUser(String pageNo, Integer pageSize, String keywords);

    String updateUserStatus(SysUser sysUser);

}
